package com.hc;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 指定配置文件
 * @author H
 *
 */
@Component
@PropertySource("classpath:/test.properties")
@ConfigurationProperties(prefix = "test")
public class SafeConfigrationProperties {
	
	private String phone;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}
